package com.ccnf.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author developer
 * @since 2018-06-11
 */
@TableName("invitation_user")
@Data
public class InvitationUser extends Model<InvitationUser> {

    @ApiModelProperty(value = "关联ID", hidden = true)
    @TableId("share_id")
    private Long shareId;

    /**
     * 邀请函ID
     */
    @TableField("invitation_id")
    private Long invitationId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 浏览时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("browse_time")
    private Long browseTime;

    /**
     * 登记时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("register_time")
    private Long registerTime;

    /**
     * 入场时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("enter_time")
    private Long enterTime;

    /**
     * 收藏时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("collection_time")
    private Long collectionTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

    @Override
    protected Serializable pkVal() {
        return shareId;
    }

    /**
     * 最新转发的时间
     */
    @ApiModelProperty(value = "最新转发的时间", hidden = true)
    @TableField("forward_time")
    private Long forwardTime;
    /**
     * 参与邀请函转发累计次数
     */
    @ApiModelProperty(value = "参与邀请函转发累计次数", hidden = true)
    @TableField("forward_count")
    private Integer forwardCount;
    /**
     * 分享出去后的浏览累计次数
     */
    @ApiModelProperty(value = "分享出去后的浏览累计次数", hidden = true)
    @TableField("browse_count")
    private Integer browseCount;
}